package com.caseProcess.mapper;

import com.caseProcess.entity.Case;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author kittlen
 * @version 1.0
 * @date 2020/11/15 9:58
 */
@Repository
public interface CaseDao {

    int insert(Case cases);

    //修改警情分派状态
    int update(Case cases);

    int delete(@Param("caseId") String caseId);

    List<Case> selectCases(@Param("cases")Case cases);

    //警情导入
    int batchInsert(List<Case> list);

    //获取警情
    List<Case> selectCases(@Param("cases") Case cases, @Param("endTime") String endTime);
}
